package com.source.module_kotlin_library.http;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

/**
 * Created by  wsl
 * on 2019/11/27 14:09
 * http api接口
 */
public interface HttpService {
    //    public static final String BASE_URL_FOR_SERVICE = "http://qzfu.zd.119xiehui.com/";
    public static final String BASE_URL_FOR_SERVICE = "https://www.wanandroid.com/";


    public static final String GET_MODULE_DATA = "http://lfjic.test.119xiehui.com/";

    /**
     * https://www.baidu.com/img
     *
     * @return
     */
    @GET
    @Streaming
    Observable<ResponseBody> getImage(@Url String url);

    @GET
    Call<ResponseBody> downFile(@Url String fileUrl);
}
